const express = require("express")

const app = express()

app.use((req, res, next) => {
  console.log("com 1");
  next()
})

app.get('/home', (req, res, next) => {
  console.log("get home 1");
  res.end("end")
})

app.post('/home', (req, res, next) => {
  console.log("post home 1");
  res.end("end")
})

app.listen(8000, () => {
  console.log("普通的中间件");
})